Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODSession


Tokenize

The Tokenize method converts the specified type string to a token.

ODTypeToken Tokenize (in ODType type);
type
A type string to be converted.
return value
A tokenized string representing the token corresponding to the specified type, expressed as a 32-bit value.
DISCUSSION
If the specified type string has already been converted to a token (by a previous call to the Tokenize method), this method returns the corresponding token from the type/token table. Otherwise, it converts the type to a token and adds a new entry to the type/token table.

Only tokens with entries in the type/token table can be converted back to type strings (by the GetType method).

EXCEPTIONS
kODErrOutOfMemory
There is not enough memory to generate a token.
SEE ALSO
The ODTypeToken type (page 877).
The ODSession::GetType method (page 611).
The ODSession::RemoveEntry method (page 613).
Listing 2-6 on page 45 in OpenDoc Cookbook.
"Defining General Display Characteristics" on page 158 in OpenDoc Programmer's Guide.
"Focus Types" on page 205 in OpenDoc Programmer's Guide.
"Part Kinds Supported by an Editor" on page 476 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help